package com.itheima.health.dao;

import com.itheima.health.pojo.SetmealCheckgroup;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SetmealCheckgroupMapper extends Mapper<SetmealCheckgroup> {
    /**
     * @Author: 位帅帅
     * @Date: 20:30 2021/1/6
     * @Params: [id]
     * @RerurnType: void
     * @Description: 根据套餐id删除信息
    */
    void deleteBySetmealId(@Param("id") Integer id);

    /**
     * @Author: 位帅帅
     * @Date: 21:08 2021/1/6
     * @Params: [id]
     * @RerurnType: java.util.List<java.lang.Integer>
     * @Description: 根据套餐id查询检查组id
    */
    List<Integer> findCheckGroupIdsBySetmealId(@Param("id") Integer id);
}
